import store from "@/store";
import dayjs from "dayjs";
export const formItemStyle = {
  paddingLeft: "20px",
};

export const cellStyle = {
  background: "rgba(28, 155, 252, 0.02)",
  color: "rgb(142, 155, 185)",
  textAlign: "center",
};

// 表头单元格样式
export const headerCellStyle = {
  background: "rgba(28, 155, 252, 0.02)",
  color: "rgb(142, 155, 185)",
  textAlign: "center",
};
// 表格内表单子样式
export const tableFormStyle = {
  marginBottom: 0,
};

export const tableBase = [
  {
    label: "ID",
    prop: "id",
    width: 50,
  },
  {
    label: "TMS显示",
    prop: "tmsStatus",
    slotName: "tmsStatus",
  },
  {
    label: "快递公司",
    prop: "companyName",
    operate: {
      type: "input",
      field: "companyName",
    },
  },
  {
    label: "目的地",
    prop: "destinationName",
    width: 300,
    operate: {
      type: "select",
      field: "destinationId",
      optionsKey: "destinationName",
      optionsValue: "destinationId",
      options: store.state.custom_dict.destination,
    },
  },
  {
    label: "属性",
    prop: "attribute",
    width: 300,
    operate: {
      type: "input",
      field: "attribute",
    },
  },

  {
    label: "创建时间",
    prop: "createTime",
  },
];
